<?php

session_start( );

define('DEBUG', false); // set to true for debugging output

if (DEBUG){
	ini_set('display_errors', 'On');
}
else{
	ini_set('display_errors', 'Off');
}

$INCLUDE_PATH = dirname(__FILE__);
$CLASS_PATH   = realpath($INCLUDE_PATH . '/../class');

require_once $INCLUDE_PATH.'/config.inc.php';

// start the mysql class
require_once $CLASS_PATH.'/mysql.class.php';
$mysql = new mysql($CFG_HOSTNAME, $CFG_USERNAME, $CFG_PASSWORD, $CFG_DATABASE);
$mysql->connect_select( );

$mysql->error_debug = $DBG_ERROR;
$mysql->query_debug = $DBG_QUERY;
$mysql->super_debug = $DBG_SUPER;

#// start the iShudan class
#require_once 'iShudan.class.php';
#$iShudan = new iShudan( );

require_once $INCLUDE_PATH.'/go.inc.php';
require_once $INCLUDE_PATH.'/html.inc.php';
require_once $INCLUDE_PATH.'/mail.inc.php';

// check for logged status
if ( ! isset($LOGIN) || (false != $LOGIN)){
	require_once $INCLUDE_PATH.'/login.inc.php';
}

?>